package com.example.mybatisplusproject.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

@Data
@NoArgsConstructor
@RequiredArgsConstructor(staticName = "of")
public class Rectangle extends Shape {
    // 长
    @NonNull
    private int length;
    // 宽
    @NonNull
    private int width;
}